﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShopSpace.Core
{
	public class LogEntry : Entity
	{

		protected LogEntry()
		{
		}

		public LogEntry(WorkItem workItem, Person person, LogEntryType type)
		{
			this.WorkItem = workItem;
			this.Person = person;
			this.LogEntryType = type;
			this.Detail = "";
			this.AuditAdd(person.DisplayName);
		}

		public virtual WorkItem WorkItem
		{
			get;
			protected set;
		}

		public virtual Person Person
		{
			get;
			protected set;
		}

		public virtual LogEntryType LogEntryType
		{
			get;
			protected set;
		}

		public virtual string Detail
		{
			get;
			set;
		}
	}
}
